﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace LaKuaShop_TestDemo
{
    /// <summary>
    /// SucessPay.xaml 的交互逻辑
    /// </summary>
    public partial class SucessPay : Window
    {
        MainWindow win3;
        public SucessPay(string sum, MainWindow win2)
        {

            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();
            Pay.Text = sum;
            win3 = win2;
        }
        //再去逛逛
        private void Again_Click(object sender, RoutedEventArgs e)
        {
            
            this.Close();
            win3.frame1.Source = new Uri("Page/ProductShowPage.xaml", UriKind.Relative);
            win3.Show();
        }
        //关闭按钮
        private void Close_Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
        //查看全部订单
        private void LookAllOrder_ButtonClick(object sender, RoutedEventArgs e)
        {
            
            win3.frame1.Source = new Uri("Page/LookOrderPage.xaml", UriKind.Relative);
            this.Close();
            win3.Show();
        }
    }
}
